package com.example.endecrypt;

import com.wangfan.endecrypt.utils.EndecryptUtils;

/**
 * @program: easy_demo
 * @description:
 * @author: ChenZhiXiang
 * @create: 2019-06-18 09:53
 **/
public class TestDemo {

    public static void main(String[] args) {
        String czx = "陈志fdfsdhjhfsafsafshjgjfsdgsttertersghfgdfjhgsgsadfjg;hfsgf;ajfhnjgdkhdgjhdjghsgsjagdhfsdghkhghgfgfhghasttreuyuhg个梵蒂冈地方个地方官的非官方个地方官是个符合国家回复接电话安抚爱好广泛化工翔";
        String str = EndecryptUtils.encrytAes(czx,"22222222222222222");
        System.out.println("加密："+str);
        System.out.println("解密："+EndecryptUtils.decryptAes(str,"22222222222222222"));

        System.out.println("******************MD5**********************");
        String id = "13765714730";
        String ids1 = EndecryptUtils.encrytMd5(id);
        // 盐,散列次数,把密文再进行3次Md5加密
        String ids2 = EndecryptUtils.encrytMd5(id,"czx",3);
        System.out.println("加密一次："+ids1);
        System.out.println("加密3次："+ids2);
    }
}
